import COSSDK from './sdk/cos-js-sdk-v5'
import TIM from './sdk/tim-wx.js'
import genTestUserSig from './sdk/GenerateTestUserSig.js'
import Vue from 'vue'

const tim = TIM.create({
  SDKAppID: genTestUserSig('').SDKAppID
})
// 设置日志等级
tim.setLogLevel(4)
tim.registerPlugin({'cos-wx-sdk':COSSDK})

Vue.prototype.$tim = tim
Vue.prototype.$TIM = TIM

export default {
    init() {
        console.log("*** tim installed ***")
    }
}
